package com.wms.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "盘点任务")
public class StockTakingTask {
    @ApiModelProperty(value = "盘点任务ID")
    @JsonIgnore
    private Integer id;

    @ApiModelProperty(value = "盘点单号")
    private String code;

    @ApiModelProperty(value = "任务名称")
    private String taskName;

    @ApiModelProperty(value = "盘点仓库id")
    @JsonIgnore
    private Integer stockId;

    @ApiModelProperty(value = "盘点仓库名称")
    private String stockName;

    @ApiModelProperty(value = "盘点人")
    @JsonIgnore
    private Integer userId;

    @ApiModelProperty(value = "盘点人名")
    private String userName;

    @ApiModelProperty(value = "盘点时间")
    private LocalDateTime takeDate;

    @ApiModelProperty(value = "盘点状态;1 待盘点 2 盘点中 3 待调整")
    private Integer status;

    @ApiModelProperty(value = "盘点序号")
    private Integer seq;

    @ApiModelProperty(value = "备注")
    @JsonIgnore
    private String note;

    @ApiModelProperty(value = "审核结果")
    @JsonIgnore
    int auditStatus;

    @ApiModelProperty(value = "任务类型 0-按货位 1-按物品")
    private Integer taskType;

    @ApiModelProperty(value = "任务生成时间")
    private LocalDateTime createTime;
}
